<?php

require_once('../includes/config/init_admin.php');
require_once('classes/PlaceMapPart.php');
require_once('classes/ShopDB.php');

$pmp_id=(int)$_GET['pmp_id'];

if($_GET['do_it']!='now'){
	exit;
}

if($pmp=PlaceMapPart::load($pmp_id)){
		  echo "Reparing PlaceMapPart $pmp_id <br>";

			$pmp_data_orig=PlaceMapPart::_unser_data($pmp->pmp_data_orig,$pmp->pmp_width,$pmp->pmp_height);

			$pmp->pmp_data=$pmp_data_orig;
			
			$pmp->save();
}

?>
